<?php if (!defined('THINK_PATH')) exit();?><html>
<head>
    <link href="/origin/Public/style/basic.css" rel="stylesheet" type="text/css" />
    <link href="/origin/Public/style/news.css" rel="stylesheet" type="text/css" />
    <link type="text/css" rel="stylesheet" href="/origin/Public/style/skin2.css" />
    <style type="text/css">
        table{
            border-collapse: 0;
            border-spacing: 0;
            boder:0;

        }
    </style>
    <script type="text/javascript">
        window.UEDITOR_HOME_URL = "/origin/Public/ueditor/";
    </script>
    <script type="text/javascript" src="/origin/Public/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="/origin/Public/ueditor/ueditor.all.js"></script>
</head>

<body>
<script type="text/javascript" src="/origin/Public/js/goucha.js"></script>
<script type="text/javascript" src="/origin/Public/js/chkbox.js"></script>
<script type="text/javascript">
    window.onload= function(){
        chkBox('chkbox','tids[]');
        chagou('imgstatus','/origin/index.php');
    };

</script>
<style type="text/css">
    table td{
        width:15%;
    }
</style>
<form action="/origin/index.php/Admin/column/batDelChaCol" method="post">
    <table class="tableb">
        <tr class="tbtitle">
            <td colspan="4" class="tdsearch"> </td>
            <td>
                <span class="rightop" style="width:110px;"><a href="/origin/index.php/Admin/column/addCha">添加文字栏目</a></span>
            </td>
        </tr>
        <tr class="contitle">
            <td><input type="checkbox" value="all" id="chkbox" />编号</td>
            <td>栏目名称</td>
            <td>形式</td>
            <td>更新时间</td>
            <td>操作</td>
        </tr>
        <?php if(is_array($list)): foreach($list as $key=>$value): ?><tr class="content conline">
            <td><input type="checkbox" name="tids[]" value="<?php echo ($value["tid"]); ?>" /><?php echo ($value["tid"]); ?></td>
            <td><?php echo ($value["name"]); ?></td>
            <td><?php echo ($value["style"]); ?></td>
            <td><?php echo ($value["updatetime"]); ?></td>
            <td>
                <a href="/origin/index.php/Admin/column/editCha/tid/<?php echo ($value["tid"]); ?>">编辑</a>
                <a href="/origin/index.php/Admin/column/deleteOneCha/tid/<?php echo ($value["tid"]); ?>" onclick="javascript:return confirm('你确定要删除该数据吗？')">删除</a>
            </td>
        </tr><?php endforeach; endif; ?>
        <tr class="content conline">
            <td><input type="submit" value="批量删除" name="goBatDel" /></td>
        </tr>
    </table>
</form>
<p>
        <div id="page">
        <?php echo ($page); ?>
        </div>
</p>
        <style type="text/css">
            div#page div{
                height: 100px;
                text-align: center;
                font-size: 25px;
            }

            div#page a{
                font-size: 25px;
            }
        </style>
</body>
</html>